package com.itheima.HomeWork_day05;
/*
有参有返回值
 */
public class LambdaTest03 {
    public static void main(String[] args) {

        getCalc((a,b)->{
            return a+b;
        });
    }

    public static void getCalc(Calculate c){
       int sum =c.sumNum(10,15);
        System.out.println(sum);
    }
}

//定义一个接口
interface Calculate{
    int  sumNum(int a,int b);
}